﻿Imports System.Runtime.Serialization
Imports Comms.PushUpgrade.Interface

'List of Methods (Passthru)
Public Enum EUpgrade
    GetCurrentVersion = 1
    GetFilesToUpgrade = 3
    GetCurrentVersions = 4
    ClearCache = 5

    FirstReport = 11
    OnAppStarted = 12
    OnAppStopped = 13
End Enum


'Native Interface (Trivial overloads should go in the Client base class)
Public Interface IUpgrade
	'Step #1: Get InstanceId (or instanceGuid?)
	Function FirstReport(id As CIdentity) As Integer

    'Step #2: Report My State; Get New Version
    Function OnAppStarted(myInfo As COnAppStarted) As CUpgradeResponse

    'Step #3: OnAppStopped
    Sub OnAppStopped(myInfo As COnAppStopped)
End Interface





